/*
 *
 *
 *
 *
 */
#include <psptypes.h>
#include <intraFont.h>
#include "display.h"


class MenuItem{
public:
	MenuItem(char *text);
	MenuItem(Image *image);
	MenuItem(char *text, Image *image);
	~MenuItem();	
private:
	intraFont* font;
	float fontSize;
	colour textColour;
	int fontStyle;
}
class Menu{
public:
	Menu();
	Menu(int x, int y);
	void addMenuItem(MenuIten *item);
	void addSubMenu(Menu *submenu);
	void removeMenuItem(int index);
	void removeMenuItem(MenuIten *item);
	void draw(Display screen);
	~Menu()
private:
	char *Text;
	MenuItem *items;
	int selected;/* or MenuItem *selected; for linked list */
	int xPos, yPos;
	int indent;
	friend MenuItem;
}
/*
typedef void (*menuFunction)(void*, int);
typedef struct{
	char **Text;
	colour highlight;
	int selected;
	int start;
	int end;
	selectionFunction func;
}MenuItem, PMenuItem;
 
typedef struct{
	int itemCount;
	char *Text;
	MenuItem *items;
	int selected;/* or MenuItem *selected; for linked list /
	int xPos, yPos;
	int indent;
	intraFont* font;
	float fontSize;
	colour textColour;
	int fontStyle;
}Menu, *PMenu;
*/

